From 698f459e7cac3564ab463eae109dc0bf5ec5b382 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sun, 8 Nov 2020 10:51:41 -0700 Subject: [PATCH] fix "Mismatching new/free or malloc/delete" found by CodeQL. (#649) --- ozi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ozi.cc b/ozi.cc index 87f7e036d..63d030f97 100644 --- a/ozi.cc +++ b/ozi.cc @@ -931,7 +931,7 @@ ozi_waypt_pr(const Waypoint* wpt) *stream << qSetRealNumberPrecision(0) << alt << ",6,0,17\r\n"; if (faked_fsdata) { - xfree(fs); + delete fs; } } -- 2.30.2